#ifndef BATTERY_TRANSMSSION_H
#define BATTERY_TRANSMSSION_H
#include "../transmissioninter.h"

class Battery_Transmssion : public TransmissionInter {
    Q_OBJECT

public:
    Battery_Transmssion( QObject* parent = nullptr, ParamNonStandard485* param = nullptr );
    ~Battery_Transmssion() override;
    void init( QList< QByteArray >* writeList, int state_ID ) override;
    void onReadHandler( const QByteArray& readByte ) override;
    void onAddWriteData( QList< QByteArray >* writeList, const TransMissionData& transMissionData ) override;
    void onAddReadData( QList< QByteArray >* readList, int state_ID ) override;

    QString GET_Value( TransmissionInter::EnumBattery Enum );
    bool getFaultState( QString& result );
    short Reinterpret( char L, char H );
    int Reinterpret( char L, char H8, char H16, char H24 );

private:
    QByteArray readDatas;
    QByteArray sendDatas;
};

#endif  // BATTERY_TRANSMSSION_H
